package com.tct.worktimeboard.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Huhailong
 * @Description
 * @Date 2021/5/14.
 */
@RestController
@RequestMapping("/api")
public class ToolController {

    @Autowired
    private CronConfig cronConfig;

    /**
     * 更新用户信息
     */
    @GetMapping("/updateUserInfo")
    public void refreshUserDept(){
        cronConfig.importOaUser();
    }
}
